package com.qiyeji.real_estate.service;

import com.qiyeji.real_estate.entity.timeTable;
import com.qiyeji.real_estate.entity.timeTableKey;
import com.qiyeji.real_estate.mapper.timeTableMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimeTableService {
    @Autowired
    timeTableMapper timeTableMapper;

    public int insert(timeTable record){
        return timeTableMapper.insert(record);
    }

    public int delete(timeTableKey key){
        return timeTableMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKey(timeTable record){
        return timeTableMapper.updateByPrimaryKey(record);
    }

    public timeTable selectByPrimaryKey(timeTableKey key){
        return timeTableMapper.selectByPrimaryKey(key);
    }

    public List<timeTable> getAllTimeTable(){
        return timeTableMapper.getAllTimeTable();
    }

    public List<timeTable> fuzzyQuery(String key){
        return timeTableMapper.fuzzyQuery(key);
    }

    public timeTable selectForCheck(timeTableKey tableKey) { return timeTableMapper.selectForCheck(tableKey); }
}

